import './assets/main.css'

import { createApp } from 'vue'
import { createPinia } from 'pinia'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import '@/styles/index.scss'
import '@/styles/design.scss'
import '@/styles/mixin.scss'
import App from './App.vue'
import router from './router'

const app = createApp(App)
const pinia = createPinia()

import * as ElementPlusIconsVue from '@element-plus/icons-vue'

for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  app.component(key, component)
}

import TableQuery from "@/components/customComponents/TableQuery.vue"
app.component('table-query', TableQuery)

app.use(pinia)
app.use(router)
app.use(ElementPlus)
app.mount('#app')
